<?php 
date_default_timezone_set("Australia/Melbourne");
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Hour Limits <br />
  Area Manager will not Counted in the hour limits<br />
</h1>
<form action="" method="post">
<table width="600" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">Shop</th>
    <th scope="col">Normal HourLimits</th>
    <th scope="col">Trannie Hour Limits</th>
  </tr>
  <?php foreach($this->sList as $key => $v){ ?>
  <tr>
    <td><?php echo $v['name_shop_location_head'];?></td>
    <td><input name="hour_limits[<?php echo $v['name_shop_location_head'];?>]" type="text" value="<?php echo $v['hour_limit'];?>" /></td>
    <td><input name="trainee_limits[<?php echo $v['name_shop_location_head'];?>]" type="text" value="<?php echo $v['trainee_limits'];?>" /></td>
  </tr>
  <?php } ?>
</table>
<input name="submit" type="submit" />
</form>

</body>
</html>
<?php
$mailbody = ob_get_contents();
$mailbody = str_replace("submit","hidden",$mailbody);

if($this->email == "yes"){
	$mail = new Model_Emailshandler();

$mail->sendNormalEmail("simon.seop@phonecollection.com.au","Here is Our Current Shop Budget,You May Change It in Manger Panel, Or Just Ignore It", $mailbody);

}
//$mail->sendNormalEmail("simon.seop@phonecollection.com.au","Daily Shop Sales Progress Summary Version 1.0", $mailbody);	





?>